Las claves se leen de un archivo de environment: .env
- Generar la base de datos
docker-compose up db
Acceder al containner
docker exec -it wazuh-db bash
Correr psql
psql -U adminuser -d cve_db
Verificar los datos importados
select id,cveid,published,name from cve;
- Correr Phoenix
docker-compose up api
Acceder:
http://localhost:4000/
- Correr Test
mix test
curl 'http://localhost:4000/api/cves' -H 'Content-Type: application/json'
curl 'http://localhost:4000/api/cves/CVE-2025-24493' -H 'Content-Type: application/json'
404
curl 'http://localhost:4000/api/cves/CVE-inexist' -H 'Content-Type: application/json'
curl 'http://localhost:4000/api/export/CVE-2025-24493' -H 'Content-Type: application/json'